package com.online_exam.repository;

import com.online_exam.domain.Subject;
import com.online_exam.viewmodel.admin.education.SubjectEditVm;
import com.online_exam.viewmodel.admin.education.SubjectPageRequestVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SubjectMapper {
    //添加科目（通过实体类）
    public int addSubject(Subject subject);

    public Subject findById(Integer id);

    public List<Subject> findAll();

    public List<Subject> page(SubjectPageRequestVM subjectPageRequestVM);

    public int updateSubject(SubjectEditVm subject);

    public int deletedById(Integer id);

}
